package shape;

import javax.media.opengl.GL2;

import util.Util;

import com.jogamp.opengl.util.gl2.GLUT;

public class Torus extends Shape {
	
	public Torus( double size ) {
		super();
		setSize(size, size, size);
	}
	
	public Torus() {
		this(1.0);
	}
	
	@Override
	protected void draw( GL2 gl ) {
		Util.glut.glutSolidTorus(1.0, 0.5, 20, 20);
	}
	
	@Override
	protected void drawSelected(GL2 gl) {
		Util.glut.glutWireTorus(1.0, 0.5, 20, 20);
	}
}
